<style>
	table{
		width:600px;
		text-align:center;
		border-collapse:collapse;
	}
	table tr td{
		height:45px;
		border:1px solid #999;
	}
	textarea{
		height:100px;
		width:400px;
		resize:none;
	}
</style>
<form action="/index.php/Admin/Goods/addck" method="POST" enctype="multipart/form-data">
	<table>
		<tr>
			<td colspan="7">
				详细订单情况
			</td>
		</tr>
		<tr>
			<td colspan="7">订单号:<?php echo $orderslistData[0]['orderid'] ?></td>
		</tr>
		<tr>
			<td colspan="7">
				送货地址：<?php echo $ordersData['address']; ?>
			</td>
		</tr>
		<tr>
			<td colspan="7">
				用户名：<?php echo $userData['username']; ?>
				真名：<?php echo $userData['relname']; ?>
			</td>
		</tr>
		<tr>
			<td colspan="7">
				邮箱：<?php echo $userData['email']; ?>
			</td>
		</tr>
		<tr>
			<td colspan="7">
				手机号码：<?php echo $userData['phone']; ?>
			</td>
		</tr>
		<tr>
			<td colspan="7">
				邮编：<?php echo $userData['code']; ?>
			</td>
		</tr>
		<tr>
			<td colspan="7">
				送货方式：
				<?php
						if($orderslistData[0]['express']==1){
							echo '申通快递';
						}elseif ($orderslistData[0]['express']==2){
							echo '城际快递';
						}else {
							echo '邮局平邮';
						}
				?>
			</td>
		</tr>
		<tr>
			<td colspan="7">
				支付方式：
				<?php
						if($orderslistData[0]['payment']==1){
							echo '余额支付';
						}elseif ($orderslistData[0]['express']==2){
							echo '银行汇款/转帐';
						}else {
							echo '货到付款';
						}
				?>
			</td>
		</tr>
		<tr>
			<td>商品编号</td>
			<td>商品名</td>
			<td>品牌</td>
			<td>分类</td>
			<td>商品价格</td>
			<td>购买数量</td>
			<td>图</td>
		</tr>
<?php
$total=0;
foreach ($orderslistData as $val):
$total+=$val['num']*$val['price'];
?>
		<tr>
			<td><?php echo $val['gid'] ?></td>
			<td><?php echo $val['name'] ?></td>
			<td><?php echo $val['bname'] ?></td>
			<td><?php echo $val['cname'] ?></td>
			<td><?php echo $val['price'] ?></td>
			<td><?php echo $val['num'] ?></td>
			<td><img style="height:40px" src="/Public/Admin/upload/<?php echo $val['photo'] ?>" /></td>
		</tr>
<?php
endforeach;
?>
		<tr>
			<td colspan="7" style="text-align:right">
				总支出：<font style="color:red">￥<b><?php echo $total; ?></b>元</font>
			</td>
		</tr>
		<tr>
			<td colspan="7" style="text-align:left">
				附言：<br>&nbsp;&nbsp;&nbsp;&nbsp;
					<?php echo $val['postscript'] ?>
			</td>
		</tr>
	</table>
</form>